<?php
function conectarMysql($schema='CRUD',$usu='root',$pwd='',$host='localhost'){
	try {
		$dsn="mysql:host=$host;dbname=$schema";
		$db=new PDO($dsn,$usu,$pwd);
		return $db;
	}catch(PDOException $e){
		echo "Error de CONEXION a la BD";
		die();
	}
}
?>